package com.easybuy.mapper;

import com.easybuy.bean.EasybuyProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EasybuyProductMapper {
    //根据id查询
    EasybuyProduct findByPk(Integer id);

    EasybuyProduct selectByCondition(Integer id);
    //分页查询
    List<EasybuyProduct> listByPage(@Param("from") Integer from,@Param("pageSize") Integer pageSize);
    //增加
    int save(EasybuyProduct ebProduct);
    //修改
    int updateByPk(EasybuyProduct ebProduct);
    //删除
    int deleteByPk(int epId);

    int countAll();
    EasybuyProduct findByName(String name);


    EasybuyProduct findByfid(Integer id);
    EasybuyProduct findBysid(Integer id);

}
